/*
               File: WPTodasMensalidades
        Description: Mensalidades
             Author: GeneXus C# Generator version 10_2_5-78484
       Generated on: 6/6/2014 9:53:12.38
       Program type: Callable routine
          Main DBMS: sqlserver
*/
using System;
using System.Collections;
using GeneXus.Utils;
using GeneXus.Resources;
using GeneXus.Application;
using GeneXus.Metadata;
using System.Data;
using System.Data.SqlClient;
using GeneXus.Data;
using com.genexus;
using GeneXus.Data.ADO;
using GeneXus.Data.NTier;
using GeneXus.Data.NTier.ADO;
using System.Runtime.Remoting;
using GeneXus.WebControls;
using GeneXus.Http;
using GeneXus.XML;
using GeneXus.Search;
using GeneXus.Encryption;
using GeneXus.Http.Client;
using GeneXus.Http.Server;
using System.Xml.Serialization;
using System.Data.SqlTypes;
using System.ServiceModel;
using System.Runtime.Serialization;
namespace GeneXus.Programs {
   public class wptodasmensalidades : GXDataArea, System.Web.SessionState.IRequiresSessionState
   {
      public wptodasmensalidades( )
      {
         context = new GxContext(  );
         DataStoreUtil.LoadDataStores( context);
         dsDefault = context.GetDataStore("Default");
         IsMain = true;
         context.SetDefaultTheme("GeneXusXEv2");
      }

      public wptodasmensalidades( IGxContext context )
      {
         this.context = context;
         IsMain = false;
         dsDefault = context.GetDataStore("Default");
      }

      public void release( )
      {
      }

      public void execute( )
      {
         executePrivate();
      }

      void executePrivate( )
      {
         isStatic = false;
         webExecute();
      }

      protected override void createObjects( )
      {
         chkavCtljaneiro = new GXCheckbox();
         chkavCtlfevereiro = new GXCheckbox();
         chkavCtlmarco = new GXCheckbox();
         chkavCtlabril = new GXCheckbox();
         chkavCtlmaio = new GXCheckbox();
         chkavCtljunho = new GXCheckbox();
         chkavCtljulho = new GXCheckbox();
         chkavCtlagosto = new GXCheckbox();
         chkavCtlsetembro = new GXCheckbox();
         chkavCtloutubro = new GXCheckbox();
         chkavCtlnovembro = new GXCheckbox();
         chkavCtldezembro = new GXCheckbox();
      }

      protected void INITWEB( )
      {
         context.SetDefaultTheme("GeneXusXEv2");
         initialize_properties( ) ;
         if ( nGotPars == 0 )
         {
            entryPointCalled = false;
            gxfirstwebparm = GetNextPar( );
            gxfirstwebparm_bkp = gxfirstwebparm;
            gxfirstwebparm = DecryptAjaxCall( gxfirstwebparm);
            if ( StringUtil.StrCmp(gxfirstwebparm, "dyncall") == 0 )
            {
               setAjaxCallMode();
               if ( ! IsValidAjaxCall( true) )
               {
                  GxWebError = 1;
                  return  ;
               }
               dyncall( GetNextPar( )) ;
               return  ;
            }
            else if ( StringUtil.StrCmp(gxfirstwebparm, "gxajaxEvt") == 0 )
            {
               setAjaxEventMode();
               if ( ! IsValidAjaxCall( true) )
               {
                  GxWebError = 1;
                  return  ;
               }
               gxfirstwebparm = GetNextPar( );
            }
            else if ( StringUtil.StrCmp(gxfirstwebparm, "gxajaxNewRow_"+"Grid1") == 0 )
            {
               nRC_Grid1 = (short)(NumberUtil.Val( GetNextPar( ), "."));
               nGXsfl_18_idx = (short)(NumberUtil.Val( GetNextPar( ), "."));
               sGXsfl_18_idx = GetNextPar( );
               setAjaxCallMode();
               if ( ! IsValidAjaxCall( true) )
               {
                  GxWebError = 1;
                  return  ;
               }
               gxnrGrid1_newrow( nRC_Grid1, nGXsfl_18_idx, sGXsfl_18_idx) ;
               return  ;
            }
            else
            {
               if ( ! IsValidAjaxCall( false) )
               {
                  GxWebError = 1;
                  return  ;
               }
               gxfirstwebparm = gxfirstwebparm_bkp;
            }
         }
      }

      public override void webExecute( )
      {
         if ( initialized == 0 )
         {
            createObjects();
            initialize();
         }
         INITWEB( ) ;
         if ( ! isAjaxCallMode( ) )
         {
            MasterPageObj = (GXMasterPage) ClassLoader.GetInstance("appmasterpage", "GeneXus.Programs.appmasterpage", new Object[] {new GxContext( context.handle, context.DataStores, context.HttpContext)});
            MasterPageObj.setDataArea(this,false);
            MasterPageObj.webExecute();
            if ( ( GxWebError == 0 ) && context.isAjaxRequest( ) )
            {
               enableOutput();
               if ( ! context.isAjaxRequest( ) )
               {
                  context.GX_webresponse.AppendHeader("Cache-Control", "max-age=0");
               }
               if ( String.IsNullOrEmpty(StringUtil.RTrim( context.wjLoc)) )
               {
                  context.GX_webresponse.AddString((String)(context.getJSONResponse( )));
               }
               else
               {
                  if ( context.isAjaxRequest( ) )
                  {
                     disableOutput();
                  }
                  RenderHtmlHeaders( ) ;
                  context.Redirect( context.wjLoc );
                  context.DispatchAjaxCommands();
               }
            }
         }
         this.cleanup();
      }

      public override short ExecuteStartEvent( )
      {
         PA0P2( ) ;
         gxajaxcallmode = (short)((isAjaxCallMode( ) ? 1 : 0));
         if ( ( gxajaxcallmode == 0 ) && ( GxWebError == 0 ) )
         {
            START0P2( ) ;
         }
         return gxajaxcallmode ;
      }

      public override void RenderHtmlHeaders( )
      {
         GxWebStd.gx_html_headers( context, 0, "", "", Form.Meta, Form.Metaequiv);
      }

      public override void RenderHtmlOpenForm( )
      {
         context.WriteHtmlText( "<title>") ;
         context.SendWebValue( Form.Caption) ;
         context.WriteHtmlTextNl( "</title>") ;
         if ( StringUtil.Len( sDynURL) > 0 )
         {
            context.WriteHtmlText( "<BASE href=\""+sDynURL+"\" />") ;
         }
         define_styles( ) ;
         if ( nGXWrapped != 1 )
         {
            MasterPageObj.master_styles();
         }
         if ( ! context.isSmartDevice( ) )
         {
            context.AddJavascriptSource("gxtimezone.js", "?"+context.GetBuildNumber( 78484));
            context.AddJavascriptSource("gxgral.js", "?"+context.GetBuildNumber( 78484));
            context.AddJavascriptSource("gxcfg.js", "?2014669531243");
         }
         else
         {
            context.AddJavascriptSource("gxtimezone.js", "?"+context.GetBuildNumber( 78484));
            context.AddJavascriptSource("gxapiSD.js", "?"+context.GetBuildNumber( 78484));
            context.AddJavascriptSource("gxfxSD.js", "?"+context.GetBuildNumber( 78484));
            context.AddJavascriptSource("gxhtmlSD.js", "?"+context.GetBuildNumber( 78484));
            context.AddJavascriptSource("gxtypesSD.js", "?"+context.GetBuildNumber( 78484));
            context.AddJavascriptSource("gxpopupSD.js", "?"+context.GetBuildNumber( 78484));
            context.AddJavascriptSource("gxfrmutlSD.js", "?"+context.GetBuildNumber( 78484));
            context.AddJavascriptSource("gxgridSD.js", "?"+context.GetBuildNumber( 78484));
            context.AddJavascriptSource("JavaScripTableSD.js", "?"+context.GetBuildNumber( 78484));
            context.AddJavascriptSource("rijndaelSD.js", "?"+context.GetBuildNumber( 78484));
            context.AddJavascriptSource("gxgralSD.js", "?"+context.GetBuildNumber( 78484));
            context.AddJavascriptSource("gxcfg.js", "?"+context.GetBuildNumber( 78484));
         }
         context.WriteHtmlText( Form.Headerrawhtml) ;
         context.CloseHtmlHeader();
         FormProcess = ((nGXWrapped==0) ? " onkeyup=\"gx.evt.onkeyup(event)\" onkeypress=\"gx.evt.onkeypress(event,false,false)\" onkeydown=\"gx.evt.onkeypress(null,false,false)\"" : "");
         context.WriteHtmlText( "<body") ;
         context.WriteHtmlText( " "+"class=\"Form\""+" "+" style=\"-moz-opacity:0;opacity:0;"+"background-color:"+context.BuildHTMLColor( Form.Backcolor)+";") ;
         if ( ! ( String.IsNullOrEmpty(StringUtil.RTrim( Form.Background)) ) )
         {
            context.WriteHtmlText( " background-image:url("+context.convertURL( Form.Background)+")") ;
         }
         context.WriteHtmlText( "\""+FormProcess+">") ;
         context.skipLines(1);
         if ( nGXWrapped != 1 )
         {
            context.WriteHtmlTextNl( "<form id=\"MAINFORM\" onsubmit=\"try{return gx.csv.validForm()}catch(e){return true;}\" name=\"MAINFORM\" method=\"post\" class=\"Form\" novalidate action=\""+formatLink("wptodasmensalidades.aspx") +"\">") ;
            GxWebStd.gx_hidden_field( context, "_EventName", "");
            GxWebStd.gx_hidden_field( context, "_EventGridId", "");
            GxWebStd.gx_hidden_field( context, "_EventRowId", "");
         }
      }

      public override void RenderHtmlCloseForm( )
      {
         /* Send hidden variables. */
         /* Send saved values. */
         if ( context.isAjaxRequest( ) )
         {
            context.httpAjaxContext.ajax_rsp_assign_sdt_attri("", false, "Sdttodasmensalidades", (Object)(AV14SDTTodasMensalidades));
         }
         else
         {
            context.httpAjaxContext.ajax_rsp_assign_hidden_sdt("Sdttodasmensalidades", (Object)(AV14SDTTodasMensalidades));
         }
         GxWebStd.gx_hidden_field( context, "nRC_Grid1", StringUtil.LTrim( StringUtil.NToC( (decimal)(nRC_Grid1), 4, 0, ".", "")));
         GxWebStd.gx_hidden_field( context, "GX_FocusControl", GX_FocusControl);
         SendAjaxEncryptionKey();
         SendComponentObjects();
         SendServerCommands();
         SendState();
         if ( nGXWrapped != 1 )
         {
            context.WriteHtmlTextNl( "</form>") ;
         }
         include_jscripts( ) ;
      }

      public override void RenderHtmlContent( )
      {
         gxajaxcallmode = (short)((isAjaxCallMode( ) ? 1 : 0));
         if ( ( gxajaxcallmode == 0 ) && ( GxWebError == 0 ) )
         {
            WE0P2( ) ;
         }
      }

      public override void DispatchEvents( )
      {
         EVT0P2( ) ;
      }

      public override bool HasEnterEvent( )
      {
         return false ;
      }

      public override String GetPgmname( )
      {
         return "WPTodasMensalidades" ;
      }

      public override String GetPgmdesc( )
      {
         return "Mensalidades" ;
      }

      public override GXWebForm GetForm( )
      {
         return Form ;
      }

      public override String GetSelfLink( )
      {
         return formatLink("wptodasmensalidades.aspx")  ;
      }

      protected void WB0P0( )
      {
         if ( context.isAjaxRequest( ) )
         {
            disableOutput();
         }
         if ( ! wbLoad )
         {
            if ( nGXWrapped == 1 )
            {
               RenderHtmlHeaders( ) ;
               RenderHtmlOpenForm( ) ;
            }
            GxWebStd.gx_msg_list( context, "", context.GX_msglist.DisplayMode, "", "", "", "false");
            wb_table1_2_0P2( true) ;
         }
         else
         {
            wb_table1_2_0P2( false) ;
         }
         return  ;
      }

      protected void wb_table1_2_0P2e( bool wbgen )
      {
         if ( wbgen )
         {
         }
         wbLoad = true;
      }

      protected void START0P2( )
      {
         wbLoad = false;
         wbEnd = 0;
         wbStart = 0;
         Form.Meta.addItem("generator", "GeneXus C# 10_2_5-78484", 0) ;
         Form.Meta.addItem("description", "Mensalidades", 0) ;
         context.wjLoc = "";
         context.nUserReturn = 0;
         context.wbHandled = 0;
         if ( StringUtil.StrCmp(context.GetRequestMethod( ), "POST") == 0 )
         {
         }
         wbErr = false;
         STRUP0P0( ) ;
      }

      protected void WS0P2( )
      {
         START0P2( ) ;
         EVT0P2( ) ;
      }

      protected void EVT0P2( )
      {
         if ( StringUtil.StrCmp(context.GetRequestMethod( ), "POST") == 0 )
         {
            if ( String.IsNullOrEmpty(StringUtil.RTrim( context.wjLoc)) && ( context.nUserReturn != 1 ) && ! wbErr )
            {
               /* Read Web Panel buttons. */
               sEvt = cgiGet( "_EventName");
               EvtGridId = cgiGet( "_EventGridId");
               EvtRowId = cgiGet( "_EventRowId");
               if ( StringUtil.Len( sEvt) > 0 )
               {
                  sEvtType = StringUtil.Left( sEvt, 1);
                  sEvt = StringUtil.Right( sEvt, (short)(StringUtil.Len( sEvt)-1));
                  if ( StringUtil.StrCmp(sEvtType, "M") != 0 )
                  {
                     if ( StringUtil.StrCmp(sEvtType, "E") == 0 )
                     {
                        sEvtType = StringUtil.Right( sEvt, 1);
                        if ( StringUtil.StrCmp(sEvtType, ".") == 0 )
                        {
                           sEvt = StringUtil.Left( sEvt, (short)(StringUtil.Len( sEvt)-1));
                           if ( StringUtil.StrCmp(sEvt, "RFR") == 0 )
                           {
                              context.wbHandled = 1;
                              dynload_actions( ) ;
                           }
                           else if ( StringUtil.StrCmp(sEvt, "LSCR") == 0 )
                           {
                              context.wbHandled = 1;
                              dynload_actions( ) ;
                              dynload_actions( ) ;
                           }
                        }
                        else
                        {
                           sEvtType = StringUtil.Right( sEvt, 4);
                           sEvt = StringUtil.Left( sEvt, (short)(StringUtil.Len( sEvt)-4));
                           if ( ( StringUtil.StrCmp(StringUtil.Left( sEvt, 5), "START") == 0 ) || ( StringUtil.StrCmp(StringUtil.Left( sEvt, 5), "ENTER") == 0 ) || ( StringUtil.StrCmp(StringUtil.Left( sEvt, 6), "CANCEL") == 0 ) )
                           {
                              nGXsfl_18_idx = (short)(NumberUtil.Val( sEvtType, "."));
                              sGXsfl_18_idx = StringUtil.PadL( StringUtil.LTrim( StringUtil.Str( (decimal)(nGXsfl_18_idx), 4, 0)), 4, "0");
                              edtavCtluserid_Internalname = "CTLUSERID_"+sGXsfl_18_idx;
                              edtavCtlusernome_Internalname = "CTLUSERNOME_"+sGXsfl_18_idx;
                              chkavCtljaneiro_Internalname = "CTLJANEIRO_"+sGXsfl_18_idx;
                              chkavCtlfevereiro_Internalname = "CTLFEVEREIRO_"+sGXsfl_18_idx;
                              chkavCtlmarco_Internalname = "CTLMARCO_"+sGXsfl_18_idx;
                              chkavCtlabril_Internalname = "CTLABRIL_"+sGXsfl_18_idx;
                              chkavCtlmaio_Internalname = "CTLMAIO_"+sGXsfl_18_idx;
                              chkavCtljunho_Internalname = "CTLJUNHO_"+sGXsfl_18_idx;
                              chkavCtljulho_Internalname = "CTLJULHO_"+sGXsfl_18_idx;
                              chkavCtlagosto_Internalname = "CTLAGOSTO_"+sGXsfl_18_idx;
                              chkavCtlsetembro_Internalname = "CTLSETEMBRO_"+sGXsfl_18_idx;
                              chkavCtloutubro_Internalname = "CTLOUTUBRO_"+sGXsfl_18_idx;
                              chkavCtlnovembro_Internalname = "CTLNOVEMBRO_"+sGXsfl_18_idx;
                              chkavCtldezembro_Internalname = "CTLDEZEMBRO_"+sGXsfl_18_idx;
                              AV17GXV1 = nGXsfl_18_idx;
                              if ( ( AV14SDTTodasMensalidades.Count >= AV17GXV1 ) && ( AV17GXV1 > 0 ) )
                              {
                                 AV14SDTTodasMensalidades.CurrentItem = ((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1));
                                 ((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1)).gxTpr_Userid = (long)(context.localUtil.CToN( cgiGet( edtavCtluserid_Internalname), ".", ","));
                                 ((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1)).gxTpr_Usernome = cgiGet( edtavCtlusernome_Internalname);
                                 ((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1)).gxTpr_Janeiro = StringUtil.StrToBool( cgiGet( chkavCtljaneiro_Internalname));
                                 ((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1)).gxTpr_Fevereiro = StringUtil.StrToBool( cgiGet( chkavCtlfevereiro_Internalname));
                                 ((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1)).gxTpr_Marco = StringUtil.StrToBool( cgiGet( chkavCtlmarco_Internalname));
                                 ((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1)).gxTpr_Abril = StringUtil.StrToBool( cgiGet( chkavCtlabril_Internalname));
                                 ((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1)).gxTpr_Maio = StringUtil.StrToBool( cgiGet( chkavCtlmaio_Internalname));
                                 ((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1)).gxTpr_Junho = StringUtil.StrToBool( cgiGet( chkavCtljunho_Internalname));
                                 ((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1)).gxTpr_Julho = StringUtil.StrToBool( cgiGet( chkavCtljulho_Internalname));
                                 ((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1)).gxTpr_Agosto = StringUtil.StrToBool( cgiGet( chkavCtlagosto_Internalname));
                                 ((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1)).gxTpr_Setembro = StringUtil.StrToBool( cgiGet( chkavCtlsetembro_Internalname));
                                 ((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1)).gxTpr_Outubro = StringUtil.StrToBool( cgiGet( chkavCtloutubro_Internalname));
                                 ((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1)).gxTpr_Novembro = StringUtil.StrToBool( cgiGet( chkavCtlnovembro_Internalname));
                                 ((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1)).gxTpr_Dezembro = StringUtil.StrToBool( cgiGet( chkavCtldezembro_Internalname));
                              }
                              sEvtType = StringUtil.Right( sEvt, 1);
                              if ( StringUtil.StrCmp(sEvtType, ".") == 0 )
                              {
                                 sEvt = StringUtil.Left( sEvt, (short)(StringUtil.Len( sEvt)-1));
                                 if ( StringUtil.StrCmp(sEvt, "START") == 0 )
                                 {
                                    context.wbHandled = 1;
                                    dynload_actions( ) ;
                                    /* Execute user event: E110P2 */
                                    E110P2 ();
                                 }
                                 else if ( StringUtil.StrCmp(sEvt, "ENTER") == 0 )
                                 {
                                    context.wbHandled = 1;
                                    if ( ! wbErr )
                                    {
                                       Rfr0gs = false;
                                       if ( ! Rfr0gs )
                                       {
                                       }
                                       dynload_actions( ) ;
                                    }
                                 }
                                 else if ( StringUtil.StrCmp(sEvt, "CANCEL") == 0 )
                                 {
                                    context.wbHandled = 1;
                                    dynload_actions( ) ;
                                 }
                                 else if ( StringUtil.StrCmp(sEvt, "LSCR") == 0 )
                                 {
                                    context.wbHandled = 1;
                                    dynload_actions( ) ;
                                 }
                              }
                              else
                              {
                              }
                           }
                        }
                     }
                     context.wbHandled = 1;
                  }
               }
            }
         }
      }

      protected void WE0P2( )
      {
         if ( ! GxWebStd.gx_redirect( context) )
         {
            Rfr0gs = true;
            Refresh( ) ;
            if ( ! GxWebStd.gx_redirect( context) )
            {
               if ( nGXWrapped == 1 )
               {
                  RenderHtmlCloseForm( ) ;
               }
            }
         }
      }

      protected void PA0P2( )
      {
         if ( nDonePA == 0 )
         {
            if ( String.IsNullOrEmpty(StringUtil.RTrim( context.GetCookie( "GX_SESSION_ID"))) )
            {
               gxcookieaux = context.SetCookie( "GX_SESSION_ID", Crypto.Encrypt64( Crypto.GetEncryptionKey( ), Crypto.GetServerKey( )), "", (DateTime)(DateTime.MinValue), "", 0);
            }
            GXKey = Crypto.Decrypt64( context.GetCookie( "GX_SESSION_ID"), Crypto.GetServerKey( ));
            GXCCtl = "CTLJANEIRO_" + sGXsfl_18_idx;
            chkavCtljaneiro.Name = GXCCtl;
            chkavCtljaneiro.WebTags = "";
            chkavCtljaneiro.Caption = "";
            chkavCtljaneiro.CheckedValue = "false";
            GXCCtl = "CTLFEVEREIRO_" + sGXsfl_18_idx;
            chkavCtlfevereiro.Name = GXCCtl;
            chkavCtlfevereiro.WebTags = "";
            chkavCtlfevereiro.Caption = "";
            chkavCtlfevereiro.CheckedValue = "false";
            GXCCtl = "CTLMARCO_" + sGXsfl_18_idx;
            chkavCtlmarco.Name = GXCCtl;
            chkavCtlmarco.WebTags = "";
            chkavCtlmarco.Caption = "";
            chkavCtlmarco.CheckedValue = "false";
            GXCCtl = "CTLABRIL_" + sGXsfl_18_idx;
            chkavCtlabril.Name = GXCCtl;
            chkavCtlabril.WebTags = "";
            chkavCtlabril.Caption = "";
            chkavCtlabril.CheckedValue = "false";
            GXCCtl = "CTLMAIO_" + sGXsfl_18_idx;
            chkavCtlmaio.Name = GXCCtl;
            chkavCtlmaio.WebTags = "";
            chkavCtlmaio.Caption = "";
            chkavCtlmaio.CheckedValue = "false";
            GXCCtl = "CTLJUNHO_" + sGXsfl_18_idx;
            chkavCtljunho.Name = GXCCtl;
            chkavCtljunho.WebTags = "";
            chkavCtljunho.Caption = "";
            chkavCtljunho.CheckedValue = "false";
            GXCCtl = "CTLJULHO_" + sGXsfl_18_idx;
            chkavCtljulho.Name = GXCCtl;
            chkavCtljulho.WebTags = "";
            chkavCtljulho.Caption = "";
            chkavCtljulho.CheckedValue = "false";
            GXCCtl = "CTLAGOSTO_" + sGXsfl_18_idx;
            chkavCtlagosto.Name = GXCCtl;
            chkavCtlagosto.WebTags = "";
            chkavCtlagosto.Caption = "";
            chkavCtlagosto.CheckedValue = "false";
            GXCCtl = "CTLSETEMBRO_" + sGXsfl_18_idx;
            chkavCtlsetembro.Name = GXCCtl;
            chkavCtlsetembro.WebTags = "";
            chkavCtlsetembro.Caption = "";
            chkavCtlsetembro.CheckedValue = "false";
            GXCCtl = "CTLOUTUBRO_" + sGXsfl_18_idx;
            chkavCtloutubro.Name = GXCCtl;
            chkavCtloutubro.WebTags = "";
            chkavCtloutubro.Caption = "";
            chkavCtloutubro.CheckedValue = "false";
            GXCCtl = "CTLNOVEMBRO_" + sGXsfl_18_idx;
            chkavCtlnovembro.Name = GXCCtl;
            chkavCtlnovembro.WebTags = "";
            chkavCtlnovembro.Caption = "";
            chkavCtlnovembro.CheckedValue = "false";
            GXCCtl = "CTLDEZEMBRO_" + sGXsfl_18_idx;
            chkavCtldezembro.Name = GXCCtl;
            chkavCtldezembro.WebTags = "";
            chkavCtldezembro.Caption = "";
            chkavCtldezembro.CheckedValue = "false";
            if ( ! context.isAjaxRequest( ) )
            {
            }
            nDonePA = 1;
         }
      }

      protected void dynload_actions( )
      {
         /* End function dynload_actions */
      }

      protected void gxnrGrid1_newrow( short nRC_Grid1 ,
                                       short nGXsfl_18_idx ,
                                       String sGXsfl_18_idx )
      {
         GxWebStd.set_html_headers( context, 0, "", "");
         edtavCtluserid_Internalname = "CTLUSERID_"+sGXsfl_18_idx;
         edtavCtlusernome_Internalname = "CTLUSERNOME_"+sGXsfl_18_idx;
         chkavCtljaneiro_Internalname = "CTLJANEIRO_"+sGXsfl_18_idx;
         chkavCtlfevereiro_Internalname = "CTLFEVEREIRO_"+sGXsfl_18_idx;
         chkavCtlmarco_Internalname = "CTLMARCO_"+sGXsfl_18_idx;
         chkavCtlabril_Internalname = "CTLABRIL_"+sGXsfl_18_idx;
         chkavCtlmaio_Internalname = "CTLMAIO_"+sGXsfl_18_idx;
         chkavCtljunho_Internalname = "CTLJUNHO_"+sGXsfl_18_idx;
         chkavCtljulho_Internalname = "CTLJULHO_"+sGXsfl_18_idx;
         chkavCtlagosto_Internalname = "CTLAGOSTO_"+sGXsfl_18_idx;
         chkavCtlsetembro_Internalname = "CTLSETEMBRO_"+sGXsfl_18_idx;
         chkavCtloutubro_Internalname = "CTLOUTUBRO_"+sGXsfl_18_idx;
         chkavCtlnovembro_Internalname = "CTLNOVEMBRO_"+sGXsfl_18_idx;
         chkavCtldezembro_Internalname = "CTLDEZEMBRO_"+sGXsfl_18_idx;
         while ( nGXsfl_18_idx <= nRC_Grid1 )
         {
            sendrow_182( ) ;
            nGXsfl_18_idx = (short)(((subGrid1_Islastpage==1)&&(nGXsfl_18_idx+1>subGrid1_Recordsperpage( )) ? 1 : nGXsfl_18_idx+1));
            sGXsfl_18_idx = StringUtil.PadL( StringUtil.LTrim( StringUtil.Str( (decimal)(nGXsfl_18_idx), 4, 0)), 4, "0");
            edtavCtluserid_Internalname = "CTLUSERID_"+sGXsfl_18_idx;
            edtavCtlusernome_Internalname = "CTLUSERNOME_"+sGXsfl_18_idx;
            chkavCtljaneiro_Internalname = "CTLJANEIRO_"+sGXsfl_18_idx;
            chkavCtlfevereiro_Internalname = "CTLFEVEREIRO_"+sGXsfl_18_idx;
            chkavCtlmarco_Internalname = "CTLMARCO_"+sGXsfl_18_idx;
            chkavCtlabril_Internalname = "CTLABRIL_"+sGXsfl_18_idx;
            chkavCtlmaio_Internalname = "CTLMAIO_"+sGXsfl_18_idx;
            chkavCtljunho_Internalname = "CTLJUNHO_"+sGXsfl_18_idx;
            chkavCtljulho_Internalname = "CTLJULHO_"+sGXsfl_18_idx;
            chkavCtlagosto_Internalname = "CTLAGOSTO_"+sGXsfl_18_idx;
            chkavCtlsetembro_Internalname = "CTLSETEMBRO_"+sGXsfl_18_idx;
            chkavCtloutubro_Internalname = "CTLOUTUBRO_"+sGXsfl_18_idx;
            chkavCtlnovembro_Internalname = "CTLNOVEMBRO_"+sGXsfl_18_idx;
            chkavCtldezembro_Internalname = "CTLDEZEMBRO_"+sGXsfl_18_idx;
         }
         context.GX_webresponse.AddString(Grid1Container.ToJavascriptSource());
         /* End function gxnrGrid1_newrow */
      }

      protected void Refresh( )
      {
         RF0P2( ) ;
         /* End function Refresh */
      }

      protected void RF0P2( )
      {
         Grid1Container.AddObjectProperty("GridName", "Grid1");
         Grid1Container.AddObjectProperty("CmpContext", "");
         Grid1Container.AddObjectProperty("InMasterPage", "false");
         Grid1Container.PageSize = subGrid1_Recordsperpage( );
         wbStart = 18;
         nGXsfl_18_idx = 1;
         sGXsfl_18_idx = StringUtil.PadL( StringUtil.LTrim( StringUtil.Str( (decimal)(nGXsfl_18_idx), 4, 0)), 4, "0");
         edtavCtluserid_Internalname = "CTLUSERID_"+sGXsfl_18_idx;
         edtavCtlusernome_Internalname = "CTLUSERNOME_"+sGXsfl_18_idx;
         chkavCtljaneiro_Internalname = "CTLJANEIRO_"+sGXsfl_18_idx;
         chkavCtlfevereiro_Internalname = "CTLFEVEREIRO_"+sGXsfl_18_idx;
         chkavCtlmarco_Internalname = "CTLMARCO_"+sGXsfl_18_idx;
         chkavCtlabril_Internalname = "CTLABRIL_"+sGXsfl_18_idx;
         chkavCtlmaio_Internalname = "CTLMAIO_"+sGXsfl_18_idx;
         chkavCtljunho_Internalname = "CTLJUNHO_"+sGXsfl_18_idx;
         chkavCtljulho_Internalname = "CTLJULHO_"+sGXsfl_18_idx;
         chkavCtlagosto_Internalname = "CTLAGOSTO_"+sGXsfl_18_idx;
         chkavCtlsetembro_Internalname = "CTLSETEMBRO_"+sGXsfl_18_idx;
         chkavCtloutubro_Internalname = "CTLOUTUBRO_"+sGXsfl_18_idx;
         chkavCtlnovembro_Internalname = "CTLNOVEMBRO_"+sGXsfl_18_idx;
         chkavCtldezembro_Internalname = "CTLDEZEMBRO_"+sGXsfl_18_idx;
         if ( String.IsNullOrEmpty(StringUtil.RTrim( context.wjLoc)) && ( context.nUserReturn != 1 ) )
         {
            edtavCtluserid_Internalname = "CTLUSERID_"+sGXsfl_18_idx;
            edtavCtlusernome_Internalname = "CTLUSERNOME_"+sGXsfl_18_idx;
            chkavCtljaneiro_Internalname = "CTLJANEIRO_"+sGXsfl_18_idx;
            chkavCtlfevereiro_Internalname = "CTLFEVEREIRO_"+sGXsfl_18_idx;
            chkavCtlmarco_Internalname = "CTLMARCO_"+sGXsfl_18_idx;
            chkavCtlabril_Internalname = "CTLABRIL_"+sGXsfl_18_idx;
            chkavCtlmaio_Internalname = "CTLMAIO_"+sGXsfl_18_idx;
            chkavCtljunho_Internalname = "CTLJUNHO_"+sGXsfl_18_idx;
            chkavCtljulho_Internalname = "CTLJULHO_"+sGXsfl_18_idx;
            chkavCtlagosto_Internalname = "CTLAGOSTO_"+sGXsfl_18_idx;
            chkavCtlsetembro_Internalname = "CTLSETEMBRO_"+sGXsfl_18_idx;
            chkavCtloutubro_Internalname = "CTLOUTUBRO_"+sGXsfl_18_idx;
            chkavCtlnovembro_Internalname = "CTLNOVEMBRO_"+sGXsfl_18_idx;
            chkavCtldezembro_Internalname = "CTLDEZEMBRO_"+sGXsfl_18_idx;
            /* Execute user event: E120P2 */
            E120P2 ();
            wbEnd = 18;
            WB0P0( ) ;
         }
      }

      protected int subGrid1_Pagecount( )
      {
         return (int)(-1) ;
      }

      protected int subGrid1_Recordcount( )
      {
         return (int)(-1) ;
      }

      protected int subGrid1_Recordsperpage( )
      {
         return (int)(-1) ;
      }

      protected int subGrid1_Currentpage( )
      {
         return (int)(-1) ;
      }

      protected void STRUP0P0( )
      {
         /* Before Start, stand alone formulas. */
         context.Gx_err = 0;
         edtavCtluserid_Enabled = 0;
         edtavCtlusernome_Enabled = 0;
         chkavCtljaneiro.Enabled = 0;
         chkavCtlfevereiro.Enabled = 0;
         chkavCtlmarco.Enabled = 0;
         chkavCtlabril.Enabled = 0;
         chkavCtlmaio.Enabled = 0;
         chkavCtljunho.Enabled = 0;
         chkavCtljulho.Enabled = 0;
         chkavCtlagosto.Enabled = 0;
         chkavCtlsetembro.Enabled = 0;
         chkavCtloutubro.Enabled = 0;
         chkavCtlnovembro.Enabled = 0;
         chkavCtldezembro.Enabled = 0;
         /* Execute Start event if defined. */
         context.wbGlbDoneStart = 0;
         /* Execute user event: E110P2 */
         E110P2 ();
         context.wbGlbDoneStart = 1;
         /* After Start, stand alone formulas. */
         if ( StringUtil.StrCmp(context.GetRequestMethod( ), "POST") == 0 )
         {
            /* Read saved SDTs. */
            ajax_req_read_hidden_sdt(cgiGet( "Sdttodasmensalidades"), (Object)(AV14SDTTodasMensalidades));
            /* Read variables values. */
            /* Read saved values. */
            nRC_Grid1 = (short)(context.localUtil.CToN( cgiGet( "nRC_Grid1"), ".", ","));
            nRC_Grid1 = (short)(context.localUtil.CToN( cgiGet( "nRC_Grid1"), ".", ","));
            nGXsfl_18_fel_idx = 0;
            while ( nGXsfl_18_fel_idx < nRC_Grid1 )
            {
               nGXsfl_18_fel_idx = (short)(((subGrid1_Islastpage==1)&&(nGXsfl_18_fel_idx+1>subGrid1_Recordsperpage( )) ? 1 : nGXsfl_18_fel_idx+1));
               sGXsfl_18_fel_idx = StringUtil.PadL( StringUtil.LTrim( StringUtil.Str( (decimal)(nGXsfl_18_fel_idx), 4, 0)), 4, "0");
               edtavCtluserid_Internalname = "CTLUSERID_"+sGXsfl_18_fel_idx;
               edtavCtlusernome_Internalname = "CTLUSERNOME_"+sGXsfl_18_fel_idx;
               chkavCtljaneiro_Internalname = "CTLJANEIRO_"+sGXsfl_18_fel_idx;
               chkavCtlfevereiro_Internalname = "CTLFEVEREIRO_"+sGXsfl_18_fel_idx;
               chkavCtlmarco_Internalname = "CTLMARCO_"+sGXsfl_18_fel_idx;
               chkavCtlabril_Internalname = "CTLABRIL_"+sGXsfl_18_fel_idx;
               chkavCtlmaio_Internalname = "CTLMAIO_"+sGXsfl_18_fel_idx;
               chkavCtljunho_Internalname = "CTLJUNHO_"+sGXsfl_18_fel_idx;
               chkavCtljulho_Internalname = "CTLJULHO_"+sGXsfl_18_fel_idx;
               chkavCtlagosto_Internalname = "CTLAGOSTO_"+sGXsfl_18_fel_idx;
               chkavCtlsetembro_Internalname = "CTLSETEMBRO_"+sGXsfl_18_fel_idx;
               chkavCtloutubro_Internalname = "CTLOUTUBRO_"+sGXsfl_18_fel_idx;
               chkavCtlnovembro_Internalname = "CTLNOVEMBRO_"+sGXsfl_18_fel_idx;
               chkavCtldezembro_Internalname = "CTLDEZEMBRO_"+sGXsfl_18_fel_idx;
               AV17GXV1 = nGXsfl_18_fel_idx;
               AV17GXV1 = nGXsfl_18_fel_idx;
               if ( ( AV14SDTTodasMensalidades.Count >= AV17GXV1 ) && ( AV17GXV1 > 0 ) )
               {
                  AV14SDTTodasMensalidades.CurrentItem = ((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1));
                  ((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1)).gxTpr_Userid = (long)(context.localUtil.CToN( cgiGet( edtavCtluserid_Internalname), ".", ","));
                  ((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1)).gxTpr_Usernome = cgiGet( edtavCtlusernome_Internalname);
                  ((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1)).gxTpr_Janeiro = StringUtil.StrToBool( cgiGet( chkavCtljaneiro_Internalname));
                  ((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1)).gxTpr_Fevereiro = StringUtil.StrToBool( cgiGet( chkavCtlfevereiro_Internalname));
                  ((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1)).gxTpr_Marco = StringUtil.StrToBool( cgiGet( chkavCtlmarco_Internalname));
                  ((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1)).gxTpr_Abril = StringUtil.StrToBool( cgiGet( chkavCtlabril_Internalname));
                  ((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1)).gxTpr_Maio = StringUtil.StrToBool( cgiGet( chkavCtlmaio_Internalname));
                  ((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1)).gxTpr_Junho = StringUtil.StrToBool( cgiGet( chkavCtljunho_Internalname));
                  ((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1)).gxTpr_Julho = StringUtil.StrToBool( cgiGet( chkavCtljulho_Internalname));
                  ((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1)).gxTpr_Agosto = StringUtil.StrToBool( cgiGet( chkavCtlagosto_Internalname));
                  ((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1)).gxTpr_Setembro = StringUtil.StrToBool( cgiGet( chkavCtlsetembro_Internalname));
                  ((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1)).gxTpr_Outubro = StringUtil.StrToBool( cgiGet( chkavCtloutubro_Internalname));
                  ((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1)).gxTpr_Novembro = StringUtil.StrToBool( cgiGet( chkavCtlnovembro_Internalname));
                  ((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1)).gxTpr_Dezembro = StringUtil.StrToBool( cgiGet( chkavCtldezembro_Internalname));
               }
               AV14SDTTodasMensalidades.CurrentItem = ((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1));
            }
            if ( nGXsfl_18_fel_idx == 0 )
            {
               nGXsfl_18_idx = 1;
               sGXsfl_18_idx = StringUtil.PadL( StringUtil.LTrim( StringUtil.Str( (decimal)(nGXsfl_18_idx), 4, 0)), 4, "0");
               edtavCtluserid_Internalname = "CTLUSERID_"+sGXsfl_18_idx;
               edtavCtlusernome_Internalname = "CTLUSERNOME_"+sGXsfl_18_idx;
               chkavCtljaneiro_Internalname = "CTLJANEIRO_"+sGXsfl_18_idx;
               chkavCtlfevereiro_Internalname = "CTLFEVEREIRO_"+sGXsfl_18_idx;
               chkavCtlmarco_Internalname = "CTLMARCO_"+sGXsfl_18_idx;
               chkavCtlabril_Internalname = "CTLABRIL_"+sGXsfl_18_idx;
               chkavCtlmaio_Internalname = "CTLMAIO_"+sGXsfl_18_idx;
               chkavCtljunho_Internalname = "CTLJUNHO_"+sGXsfl_18_idx;
               chkavCtljulho_Internalname = "CTLJULHO_"+sGXsfl_18_idx;
               chkavCtlagosto_Internalname = "CTLAGOSTO_"+sGXsfl_18_idx;
               chkavCtlsetembro_Internalname = "CTLSETEMBRO_"+sGXsfl_18_idx;
               chkavCtloutubro_Internalname = "CTLOUTUBRO_"+sGXsfl_18_idx;
               chkavCtlnovembro_Internalname = "CTLNOVEMBRO_"+sGXsfl_18_idx;
               chkavCtldezembro_Internalname = "CTLDEZEMBRO_"+sGXsfl_18_idx;
            }
            nGXsfl_18_fel_idx = 1;
            /* Read subfile selected row values. */
            /* Read hidden variables. */
            GXKey = Crypto.Decrypt64( context.GetCookie( "GX_SESSION_ID"), Crypto.GetServerKey( ));
         }
         else
         {
            dynload_actions( ) ;
         }
      }

      protected void GXStart( )
      {
         /* Execute user event: E110P2 */
         E110P2 ();
         if (returnInSub) return;
      }

      protected void E110P2( )
      {
         /* Start Routine */
         GXt_objcol_SdtSDTTodasMensalidades_SDTTodasMensalidadesItem1 = AV14SDTTodasMensalidades;
         new prctodasmensalidades(context ).execute( ref  GXt_objcol_SdtSDTTodasMensalidades_SDTTodasMensalidadesItem1) ;
         AV14SDTTodasMensalidades = GXt_objcol_SdtSDTTodasMensalidades_SDTTodasMensalidadesItem1;
         gx_BV18 = true;
      }

      private void E120P2( )
      {
         /* Grid1_Load Routine */
         AV17GXV1 = 1;
         while ( AV17GXV1 <= AV14SDTTodasMensalidades.Count )
         {
            AV14SDTTodasMensalidades.CurrentItem = ((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1));
            context.httpAjaxContext.ajax_rsp_assign_sdt_attri("", false, "AV14SDTTodasMensalidades", (Object)(AV14SDTTodasMensalidades));
            /* Load Method */
            if ( wbStart != -1 )
            {
               wbStart = 18;
            }
            sendrow_182( ) ;
            AV17GXV1 = (short)(AV17GXV1+1);
         }
      }

      protected void wb_table1_2_0P2( bool wbgen )
      {
         if ( wbgen )
         {
            /* Table start */
            sStyleString = "";
            sStyleString = sStyleString + "background-color: " + context.BuildHTMLColor( (int)(0xF4F4F4)) + ";";
            sStyleString = sStyleString + "border:" + StringUtil.Str( (decimal)(1), 3, 0) + "px solid;";
            if ( StringUtil.StrCmp(context.BuildHTMLColor( (int)(0xCCCCCC))+";", "") != 0 )
            {
               sStyleString = sStyleString + " border-color: " + context.BuildHTMLColor( (int)(0xCCCCCC)) + ";";
            }
            GxWebStd.gx_table_start( context, tblTable1_Internalname, tblTable1_Internalname, "", "Table", 1, "", "", 1, 2, sStyleString, "", 0);
            context.WriteHtmlText( "<tbody>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td class=\"Padding10px\" >") ;
            wb_table2_5_0P2( true) ;
         }
         else
         {
            wb_table2_5_0P2( false) ;
         }
         return  ;
      }

      protected void wb_table2_5_0P2e( bool wbgen )
      {
         if ( wbgen )
         {
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "</tbody>") ;
            /* End of table */
            context.WriteHtmlText( "</table>") ;
            wb_table1_2_0P2e( true) ;
         }
         else
         {
            wb_table1_2_0P2e( false) ;
         }
      }

      protected void wb_table2_5_0P2( bool wbgen )
      {
         if ( wbgen )
         {
            /* Table start */
            sStyleString = "";
            GxWebStd.gx_table_start( context, tblTable2_Internalname, tblTable2_Internalname, "", "Table", 0, "", "", 1, 2, sStyleString, "", 0);
            context.WriteHtmlText( "<tbody>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td>") ;
            /* Text block */
            ClassString = "TextBlock";
            StyleString = "font-family:'Arial'; font-size:18.0pt; font-weight:normal; font-style:normal;";
            GxWebStd.gx_label_ctrl( context, lblTextblock1_Internalname, "Mensalidades", "", "", lblTextblock1_Jsonclick, "", StyleString, ClassString, 0, "", 1, 1, 0, "HLP_WPTodasMensalidades.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td bgcolor=\"#FFFFFF\"  style=\"height:1px\">") ;
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td style=\"height:7px\">") ;
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td>") ;
            /* Text block */
            ClassString = "TextBlock";
            StyleString = "";
            GxWebStd.gx_label_ctrl( context, lblTextblock4_Internalname, "Mensalidades", "", "", lblTextblock4_Jsonclick, "", StyleString, ClassString, 0, "", 1, 1, 0, "HLP_WPTodasMensalidades.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td>") ;
            /*  Grid Control  */
            Grid1Container.SetWrapped(nGXWrapped);
            if ( Grid1Container.GetWrapped() == 1 )
            {
               context.WriteHtmlText( "<div id=\""+"Grid1Container"+"DivS\" gxgridid=\"18\">") ;
               sStyleString = "";
               GxWebStd.gx_table_start( context, subGrid1_Internalname, subGrid1_Internalname, "", "Grid", 0, "", "", 1, 2, sStyleString, "", 0);
               /* Subfile titles */
               context.WriteHtmlText( "<tr") ;
               context.WriteHtmlTextNl( ">") ;
               if ( subGrid1_Backcolorstyle == 0 )
               {
                  subGrid1_Titlebackstyle = 0;
                  if ( StringUtil.Len( subGrid1_Class) > 0 )
                  {
                     subGrid1_Linesclass = subGrid1_Class+"Title";
                  }
               }
               else
               {
                  subGrid1_Titlebackstyle = 1;
                  if ( subGrid1_Backcolorstyle == 1 )
                  {
                     subGrid1_Titlebackcolor = subGrid1_Allbackcolor;
                     if ( StringUtil.Len( subGrid1_Class) > 0 )
                     {
                        subGrid1_Linesclass = subGrid1_Class+"UniformTitle";
                     }
                  }
                  else
                  {
                     if ( StringUtil.Len( subGrid1_Class) > 0 )
                     {
                        subGrid1_Linesclass = subGrid1_Class+"Title";
                     }
                  }
               }
               context.WriteHtmlText( "<th align=\""+"right"+"\" "+" nowrap=\"nowrap\" "+" class=\""+subGrid1_Linesclass+"\" "+" style=\""+"display:none;"+""+"\" "+">") ;
               context.SendWebValue( "UserId") ;
               context.WriteHtmlTextNl( "</th>") ;
               context.WriteHtmlText( "<th align=\""+"left"+"\" "+" nowrap=\"nowrap\" "+" class=\""+subGrid1_Linesclass+"\" "+" style=\""+((-1==0) ? "display:none;" : "")+""+"\" "+">") ;
               context.SendWebValue( "Nome") ;
               context.WriteHtmlTextNl( "</th>") ;
               context.WriteHtmlText( "<th align=\""+""+"\" "+" nowrap=\"nowrap\" "+" class=\""+subGrid1_Linesclass+"\" "+" style=\""+((-1==0) ? "display:none;" : "")+""+"\" "+">") ;
               context.SendWebValue( "Janeiro") ;
               context.WriteHtmlTextNl( "</th>") ;
               context.WriteHtmlText( "<th align=\""+""+"\" "+" nowrap=\"nowrap\" "+" class=\""+subGrid1_Linesclass+"\" "+" style=\""+((-1==0) ? "display:none;" : "")+""+"\" "+">") ;
               context.SendWebValue( "Fevereiro") ;
               context.WriteHtmlTextNl( "</th>") ;
               context.WriteHtmlText( "<th align=\""+""+"\" "+" nowrap=\"nowrap\" "+" class=\""+subGrid1_Linesclass+"\" "+" style=\""+((-1==0) ? "display:none;" : "")+""+"\" "+">") ;
               context.SendWebValue( "Marco") ;
               context.WriteHtmlTextNl( "</th>") ;
               context.WriteHtmlText( "<th align=\""+""+"\" "+" nowrap=\"nowrap\" "+" class=\""+subGrid1_Linesclass+"\" "+" style=\""+((-1==0) ? "display:none;" : "")+""+"\" "+">") ;
               context.SendWebValue( "Abril") ;
               context.WriteHtmlTextNl( "</th>") ;
               context.WriteHtmlText( "<th align=\""+""+"\" "+" nowrap=\"nowrap\" "+" class=\""+subGrid1_Linesclass+"\" "+" style=\""+((-1==0) ? "display:none;" : "")+""+"\" "+">") ;
               context.SendWebValue( "Maio") ;
               context.WriteHtmlTextNl( "</th>") ;
               context.WriteHtmlText( "<th align=\""+""+"\" "+" nowrap=\"nowrap\" "+" class=\""+subGrid1_Linesclass+"\" "+" style=\""+((-1==0) ? "display:none;" : "")+""+"\" "+">") ;
               context.SendWebValue( "Junho") ;
               context.WriteHtmlTextNl( "</th>") ;
               context.WriteHtmlText( "<th align=\""+""+"\" "+" nowrap=\"nowrap\" "+" class=\""+subGrid1_Linesclass+"\" "+" style=\""+((-1==0) ? "display:none;" : "")+""+"\" "+">") ;
               context.SendWebValue( "Julho") ;
               context.WriteHtmlTextNl( "</th>") ;
               context.WriteHtmlText( "<th align=\""+""+"\" "+" nowrap=\"nowrap\" "+" class=\""+subGrid1_Linesclass+"\" "+" style=\""+((-1==0) ? "display:none;" : "")+""+"\" "+">") ;
               context.SendWebValue( "Agosto") ;
               context.WriteHtmlTextNl( "</th>") ;
               context.WriteHtmlText( "<th align=\""+""+"\" "+" nowrap=\"nowrap\" "+" class=\""+subGrid1_Linesclass+"\" "+" style=\""+((-1==0) ? "display:none;" : "")+""+"\" "+">") ;
               context.SendWebValue( "Setembro") ;
               context.WriteHtmlTextNl( "</th>") ;
               context.WriteHtmlText( "<th align=\""+""+"\" "+" nowrap=\"nowrap\" "+" class=\""+subGrid1_Linesclass+"\" "+" style=\""+((-1==0) ? "display:none;" : "")+""+"\" "+">") ;
               context.SendWebValue( "Outubro") ;
               context.WriteHtmlTextNl( "</th>") ;
               context.WriteHtmlText( "<th align=\""+""+"\" "+" nowrap=\"nowrap\" "+" class=\""+subGrid1_Linesclass+"\" "+" style=\""+((-1==0) ? "display:none;" : "")+""+"\" "+">") ;
               context.SendWebValue( "Novembro") ;
               context.WriteHtmlTextNl( "</th>") ;
               context.WriteHtmlText( "<th align=\""+""+"\" "+" nowrap=\"nowrap\" "+" class=\""+subGrid1_Linesclass+"\" "+" style=\""+((-1==0) ? "display:none;" : "")+""+"\" "+">") ;
               context.SendWebValue( "Dezembro") ;
               context.WriteHtmlTextNl( "</th>") ;
               context.WriteHtmlTextNl( "</tr>") ;
               Grid1Container.AddObjectProperty("GridName", "Grid1");
            }
            else
            {
               Grid1Container.AddObjectProperty("GridName", "Grid1");
               Grid1Container.AddObjectProperty("Class", "Grid");
               Grid1Container.AddObjectProperty("Cellpadding", StringUtil.LTrim( StringUtil.NToC( (decimal)(1), 4, 0, ".", "")));
               Grid1Container.AddObjectProperty("Cellspacing", StringUtil.LTrim( StringUtil.NToC( (decimal)(2), 4, 0, ".", "")));
               Grid1Container.AddObjectProperty("Backcolorstyle", StringUtil.LTrim( StringUtil.NToC( (decimal)(subGrid1_Backcolorstyle), 1, 0, ".", "")));
               Grid1Container.AddObjectProperty("CmpContext", "");
               Grid1Container.AddObjectProperty("InMasterPage", "false");
               Grid1Column = GXWebColumn.GetNew(isAjaxCallMode( ));
               Grid1Column.AddObjectProperty("Enabled", StringUtil.LTrim( StringUtil.NToC( (decimal)(edtavCtluserid_Enabled), 5, 0, ".", "")));
               Grid1Container.AddColumnProperties(Grid1Column);
               Grid1Column = GXWebColumn.GetNew(isAjaxCallMode( ));
               Grid1Column.AddObjectProperty("Enabled", StringUtil.LTrim( StringUtil.NToC( (decimal)(edtavCtlusernome_Enabled), 5, 0, ".", "")));
               Grid1Container.AddColumnProperties(Grid1Column);
               Grid1Column = GXWebColumn.GetNew(isAjaxCallMode( ));
               Grid1Column.AddObjectProperty("Enabled", StringUtil.LTrim( StringUtil.NToC( (decimal)(chkavCtljaneiro.Enabled), 5, 0, ".", "")));
               Grid1Container.AddColumnProperties(Grid1Column);
               Grid1Column = GXWebColumn.GetNew(isAjaxCallMode( ));
               Grid1Column.AddObjectProperty("Enabled", StringUtil.LTrim( StringUtil.NToC( (decimal)(chkavCtlfevereiro.Enabled), 5, 0, ".", "")));
               Grid1Container.AddColumnProperties(Grid1Column);
               Grid1Column = GXWebColumn.GetNew(isAjaxCallMode( ));
               Grid1Column.AddObjectProperty("Enabled", StringUtil.LTrim( StringUtil.NToC( (decimal)(chkavCtlmarco.Enabled), 5, 0, ".", "")));
               Grid1Container.AddColumnProperties(Grid1Column);
               Grid1Column = GXWebColumn.GetNew(isAjaxCallMode( ));
               Grid1Column.AddObjectProperty("Enabled", StringUtil.LTrim( StringUtil.NToC( (decimal)(chkavCtlabril.Enabled), 5, 0, ".", "")));
               Grid1Container.AddColumnProperties(Grid1Column);
               Grid1Column = GXWebColumn.GetNew(isAjaxCallMode( ));
               Grid1Column.AddObjectProperty("Enabled", StringUtil.LTrim( StringUtil.NToC( (decimal)(chkavCtlmaio.Enabled), 5, 0, ".", "")));
               Grid1Container.AddColumnProperties(Grid1Column);
               Grid1Column = GXWebColumn.GetNew(isAjaxCallMode( ));
               Grid1Column.AddObjectProperty("Enabled", StringUtil.LTrim( StringUtil.NToC( (decimal)(chkavCtljunho.Enabled), 5, 0, ".", "")));
               Grid1Container.AddColumnProperties(Grid1Column);
               Grid1Column = GXWebColumn.GetNew(isAjaxCallMode( ));
               Grid1Column.AddObjectProperty("Enabled", StringUtil.LTrim( StringUtil.NToC( (decimal)(chkavCtljulho.Enabled), 5, 0, ".", "")));
               Grid1Container.AddColumnProperties(Grid1Column);
               Grid1Column = GXWebColumn.GetNew(isAjaxCallMode( ));
               Grid1Column.AddObjectProperty("Enabled", StringUtil.LTrim( StringUtil.NToC( (decimal)(chkavCtlagosto.Enabled), 5, 0, ".", "")));
               Grid1Container.AddColumnProperties(Grid1Column);
               Grid1Column = GXWebColumn.GetNew(isAjaxCallMode( ));
               Grid1Column.AddObjectProperty("Enabled", StringUtil.LTrim( StringUtil.NToC( (decimal)(chkavCtlsetembro.Enabled), 5, 0, ".", "")));
               Grid1Container.AddColumnProperties(Grid1Column);
               Grid1Column = GXWebColumn.GetNew(isAjaxCallMode( ));
               Grid1Column.AddObjectProperty("Enabled", StringUtil.LTrim( StringUtil.NToC( (decimal)(chkavCtloutubro.Enabled), 5, 0, ".", "")));
               Grid1Container.AddColumnProperties(Grid1Column);
               Grid1Column = GXWebColumn.GetNew(isAjaxCallMode( ));
               Grid1Column.AddObjectProperty("Enabled", StringUtil.LTrim( StringUtil.NToC( (decimal)(chkavCtlnovembro.Enabled), 5, 0, ".", "")));
               Grid1Container.AddColumnProperties(Grid1Column);
               Grid1Column = GXWebColumn.GetNew(isAjaxCallMode( ));
               Grid1Column.AddObjectProperty("Enabled", StringUtil.LTrim( StringUtil.NToC( (decimal)(chkavCtldezembro.Enabled), 5, 0, ".", "")));
               Grid1Container.AddColumnProperties(Grid1Column);
               Grid1Container.AddObjectProperty("Allowselection", StringUtil.LTrim( StringUtil.NToC( (decimal)(subGrid1_Allowselection), 1, 0, ".", "")));
               Grid1Container.AddObjectProperty("Selectioncolor", StringUtil.LTrim( StringUtil.NToC( (decimal)(subGrid1_Selectioncolor), 9, 0, ".", "")));
               Grid1Container.AddObjectProperty("Allowhover", StringUtil.LTrim( StringUtil.NToC( (decimal)(subGrid1_Allowhovering), 1, 0, ".", "")));
               Grid1Container.AddObjectProperty("Hovercolor", StringUtil.LTrim( StringUtil.NToC( (decimal)(subGrid1_Hoveringcolor), 9, 0, ".", "")));
               Grid1Container.AddObjectProperty("Allowcollapsing", StringUtil.LTrim( StringUtil.NToC( (decimal)(subGrid1_Allowcollapsing), 1, 0, ".", "")));
               Grid1Container.AddObjectProperty("Collapsed", StringUtil.LTrim( StringUtil.NToC( (decimal)(subGrid1_Collapsed), 1, 0, ".", "")));
            }
         }
         if ( wbEnd == 18 )
         {
            wbEnd = 0;
            nRC_Grid1 = (short)(nGXsfl_18_idx-1);
            if ( Grid1Container.GetWrapped() == 1 )
            {
               context.WriteHtmlText( "</table>") ;
               context.WriteHtmlText( "</div>") ;
            }
            else
            {
               AV17GXV1 = nGXsfl_18_idx;
               sStyleString = " style=\"display:none;\"";
               sStyleString = "";
               context.WriteHtmlText( "<div id=\""+"Grid1Container"+"Div\" "+sStyleString+">"+"</div>") ;
               context.httpAjaxContext.ajax_rsp_assign_grid("_"+"Grid1", (Object)(Grid1Container));
               if ( ! context.isAjaxRequest( ) )
               {
                  GxWebStd.gx_hidden_field( context, "Grid1ContainerData", Grid1Container.ToJavascriptSource());
               }
               if ( context.isAjaxRequest( ) )
               {
                  GxWebStd.gx_hidden_field( context, "Grid1ContainerData"+"V", Grid1Container.GridValuesHidden());
               }
               else
               {
                  context.WriteHtmlText( "<input type=\"hidden\" "+"name=\""+"Grid1ContainerData"+"V"+"\" value='"+Grid1Container.GridValuesHidden()+"'/>") ;
               }
            }
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "</tbody>") ;
            /* End of table */
            context.WriteHtmlText( "</table>") ;
            wb_table2_5_0P2e( true) ;
         }
         else
         {
            wb_table2_5_0P2e( false) ;
         }
      }

      public override void setparameters( Object[] obj )
      {
         createObjects();
         initialize();
      }

      public override String getresponse( String sGXDynURL )
      {
         context.SetDefaultTheme("GeneXusXEv2");
         initialize_properties( ) ;
         BackMsgLst = context.GX_msglist;
         context.GX_msglist = LclMsgLst;
         sDynURL = sGXDynURL;
         nGotPars = (short)(1);
         nGXWrapped = (short)(1);
         context.SetWrapped(true);
         PA0P2( ) ;
         WS0P2( ) ;
         WE0P2( ) ;
         this.cleanup();
         context.SetWrapped(false);
         context.GX_msglist = BackMsgLst;
         return "";
      }

      public void responsestatic( String sGXDynURL )
      {
      }

      protected void define_styles( )
      {
         AddThemeStyleSheetFile("", context.GetTheme( )+".css", "?9522669");
         idxLst = 1;
         while ( idxLst <= Form.Jscriptsrc.Count )
         {
            context.AddJavascriptSource(StringUtil.RTrim( Form.Jscriptsrc.Item(idxLst)), "?2014669531320");
            idxLst = (int)(idxLst+1);
         }
         /* End function define_styles */
      }

      protected void include_jscripts( )
      {
         if ( nGXWrapped != 1 )
         {
            context.AddJavascriptSource("messages.eng.js", "?"+context.GetBuildNumber( 78484));
            context.AddJavascriptSource("wptodasmensalidades.js", "?2014669531321");
         }
         /* End function include_jscripts */
      }

      protected void sendrow_182( )
      {
         WB0P0( ) ;
         Grid1Row = GXWebRow.GetNew(context,Grid1Container);
         if ( subGrid1_Backcolorstyle == 0 )
         {
            /* None style subfile background logic. */
            subGrid1_Backstyle = 0;
            if ( StringUtil.StrCmp(subGrid1_Class, "") != 0 )
            {
               subGrid1_Linesclass = subGrid1_Class+"Odd";
            }
         }
         else if ( subGrid1_Backcolorstyle == 1 )
         {
            /* Uniform style subfile background logic. */
            subGrid1_Backstyle = 0;
            subGrid1_Backcolor = subGrid1_Allbackcolor;
            if ( StringUtil.StrCmp(subGrid1_Class, "") != 0 )
            {
               subGrid1_Linesclass = subGrid1_Class+"Uniform";
            }
         }
         else if ( subGrid1_Backcolorstyle == 2 )
         {
            /* Header style subfile background logic. */
            subGrid1_Backstyle = 1;
            if ( StringUtil.StrCmp(subGrid1_Class, "") != 0 )
            {
               subGrid1_Linesclass = subGrid1_Class+"Odd";
            }
            subGrid1_Backcolor = (int)(0xF6F6F6);
         }
         else if ( subGrid1_Backcolorstyle == 3 )
         {
            /* Report style subfile background logic. */
            subGrid1_Backstyle = 1;
            if ( (int)(nGXsfl_18_idx % (2)) == 0 )
            {
               subGrid1_Backcolor = (int)(0xFFFFFF);
               if ( StringUtil.StrCmp(subGrid1_Class, "") != 0 )
               {
                  subGrid1_Linesclass = subGrid1_Class+"Even";
               }
            }
            else
            {
               subGrid1_Backcolor = (int)(0xF6F6F6);
               if ( StringUtil.StrCmp(subGrid1_Class, "") != 0 )
               {
                  subGrid1_Linesclass = subGrid1_Class+"Odd";
               }
            }
         }
         if ( Grid1Container.GetWrapped() == 1 )
         {
            context.WriteHtmlText( "<tr ") ;
            context.WriteHtmlText( " class=\""+subGrid1_Linesclass+"\" style=\""+""+"\"") ;
            context.WriteHtmlText( " gxrow=\""+sGXsfl_18_idx+"\">") ;
         }
         /* Subfile cell */
         if ( Grid1Container.GetWrapped() == 1 )
         {
            context.WriteHtmlText( "<td valign=\"middle\" align=\""+"right"+"\""+" style=\""+"display:none;"+"\">") ;
         }
         /* Single line edit */
         ClassString = "Attribute";
         StyleString = "";
         ROClassString = ClassString;
         Grid1Row.AddColumnProperties("edit", 1, isAjaxCallMode( ), new Object[] {(String)edtavCtluserid_Internalname,StringUtil.LTrim( StringUtil.NToC( (decimal)(((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1)).gxTpr_Userid), 15, 0, ".", "")),((edtavCtluserid_Enabled!=0) ? StringUtil.LTrim( context.localUtil.Format( (decimal)(((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1)).gxTpr_Userid), "ZZZZZZZZZZZZZZ9")) : context.localUtil.Format( (decimal)(((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1)).gxTpr_Userid), "ZZZZZZZZZZZZZZ9")),(String)"",(String)"",(String)"",(String)"",(String)"",(String)"",(String)edtavCtluserid_Jsonclick,(short)0,(String)ClassString,(String)StyleString,(String)ROClassString,(short)0,(int)edtavCtluserid_Enabled,(short)0,(String)"text",(String)"",(short)0,(String)"px",(short)17,(String)"px",(short)15,(short)0,(short)0,(short)18,(short)1,(short)1,(short)0,(bool)false,(String)"",(String)"right"});
         /* Subfile cell */
         if ( Grid1Container.GetWrapped() == 1 )
         {
            context.WriteHtmlText( "<td valign=\"middle\" align=\""+"left"+"\""+" style=\""+((-1==0) ? "display:none;" : "")+"\">") ;
         }
         /* Single line edit */
         ClassString = "Attribute";
         StyleString = "";
         ROClassString = ClassString;
         Grid1Row.AddColumnProperties("edit", 1, isAjaxCallMode( ), new Object[] {(String)edtavCtlusernome_Internalname,StringUtil.RTrim( ((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1)).gxTpr_Usernome),(String)"",(String)"",(String)"",(String)"",(String)"",(String)"",(String)"",(String)edtavCtlusernome_Jsonclick,(short)0,(String)ClassString,(String)StyleString,(String)ROClassString,(short)-1,(int)edtavCtlusernome_Enabled,(short)0,(String)"text",(String)"",(short)0,(String)"px",(short)17,(String)"px",(short)200,(short)0,(short)0,(short)18,(short)1,(short)1,(short)-1,(bool)false,(String)"",(String)"left"});
         /* Subfile cell */
         if ( Grid1Container.GetWrapped() == 1 )
         {
            context.WriteHtmlText( "<td valign=\"middle\" align=\""+""+"\""+" style=\""+((-1==0) ? "display:none;" : "")+"\">") ;
         }
         /* Check box */
         ClassString = "Attribute";
         StyleString = "";
         Grid1Row.AddColumnProperties("checkbox", 1, isAjaxCallMode( ), new Object[] {(String)chkavCtljaneiro_Internalname,StringUtil.BoolToStr( ((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1)).gxTpr_Janeiro),(String)"",(short)-1,chkavCtljaneiro.Enabled,(String)"true",(String)"",(String)StyleString,(String)ClassString,(String)""});
         /* Subfile cell */
         if ( Grid1Container.GetWrapped() == 1 )
         {
            context.WriteHtmlText( "<td valign=\"middle\" align=\""+""+"\""+" style=\""+((-1==0) ? "display:none;" : "")+"\">") ;
         }
         /* Check box */
         ClassString = "Attribute";
         StyleString = "";
         Grid1Row.AddColumnProperties("checkbox", 1, isAjaxCallMode( ), new Object[] {(String)chkavCtlfevereiro_Internalname,StringUtil.BoolToStr( ((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1)).gxTpr_Fevereiro),(String)"",(short)-1,chkavCtlfevereiro.Enabled,(String)"true",(String)"",(String)StyleString,(String)ClassString,(String)""});
         /* Subfile cell */
         if ( Grid1Container.GetWrapped() == 1 )
         {
            context.WriteHtmlText( "<td valign=\"middle\" align=\""+""+"\""+" style=\""+((-1==0) ? "display:none;" : "")+"\">") ;
         }
         /* Check box */
         ClassString = "Attribute";
         StyleString = "";
         Grid1Row.AddColumnProperties("checkbox", 1, isAjaxCallMode( ), new Object[] {(String)chkavCtlmarco_Internalname,StringUtil.BoolToStr( ((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1)).gxTpr_Marco),(String)"",(short)-1,chkavCtlmarco.Enabled,(String)"true",(String)"",(String)StyleString,(String)ClassString,(String)""});
         /* Subfile cell */
         if ( Grid1Container.GetWrapped() == 1 )
         {
            context.WriteHtmlText( "<td valign=\"middle\" align=\""+""+"\""+" style=\""+((-1==0) ? "display:none;" : "")+"\">") ;
         }
         /* Check box */
         ClassString = "Attribute";
         StyleString = "";
         Grid1Row.AddColumnProperties("checkbox", 1, isAjaxCallMode( ), new Object[] {(String)chkavCtlabril_Internalname,StringUtil.BoolToStr( ((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1)).gxTpr_Abril),(String)"",(short)-1,chkavCtlabril.Enabled,(String)"true",(String)"",(String)StyleString,(String)ClassString,(String)""});
         /* Subfile cell */
         if ( Grid1Container.GetWrapped() == 1 )
         {
            context.WriteHtmlText( "<td valign=\"middle\" align=\""+""+"\""+" style=\""+((-1==0) ? "display:none;" : "")+"\">") ;
         }
         /* Check box */
         ClassString = "Attribute";
         StyleString = "";
         Grid1Row.AddColumnProperties("checkbox", 1, isAjaxCallMode( ), new Object[] {(String)chkavCtlmaio_Internalname,StringUtil.BoolToStr( ((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1)).gxTpr_Maio),(String)"",(short)-1,chkavCtlmaio.Enabled,(String)"true",(String)"",(String)StyleString,(String)ClassString,(String)""});
         /* Subfile cell */
         if ( Grid1Container.GetWrapped() == 1 )
         {
            context.WriteHtmlText( "<td valign=\"middle\" align=\""+""+"\""+" style=\""+((-1==0) ? "display:none;" : "")+"\">") ;
         }
         /* Check box */
         ClassString = "Attribute";
         StyleString = "";
         Grid1Row.AddColumnProperties("checkbox", 1, isAjaxCallMode( ), new Object[] {(String)chkavCtljunho_Internalname,StringUtil.BoolToStr( ((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1)).gxTpr_Junho),(String)"",(short)-1,chkavCtljunho.Enabled,(String)"true",(String)"",(String)StyleString,(String)ClassString,(String)""});
         /* Subfile cell */
         if ( Grid1Container.GetWrapped() == 1 )
         {
            context.WriteHtmlText( "<td valign=\"middle\" align=\""+""+"\""+" style=\""+((-1==0) ? "display:none;" : "")+"\">") ;
         }
         /* Check box */
         ClassString = "Attribute";
         StyleString = "";
         Grid1Row.AddColumnProperties("checkbox", 1, isAjaxCallMode( ), new Object[] {(String)chkavCtljulho_Internalname,StringUtil.BoolToStr( ((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1)).gxTpr_Julho),(String)"",(short)-1,chkavCtljulho.Enabled,(String)"true",(String)"",(String)StyleString,(String)ClassString,(String)""});
         /* Subfile cell */
         if ( Grid1Container.GetWrapped() == 1 )
         {
            context.WriteHtmlText( "<td valign=\"middle\" align=\""+""+"\""+" style=\""+((-1==0) ? "display:none;" : "")+"\">") ;
         }
         /* Check box */
         ClassString = "Attribute";
         StyleString = "";
         Grid1Row.AddColumnProperties("checkbox", 1, isAjaxCallMode( ), new Object[] {(String)chkavCtlagosto_Internalname,StringUtil.BoolToStr( ((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1)).gxTpr_Agosto),(String)"",(short)-1,chkavCtlagosto.Enabled,(String)"true",(String)"",(String)StyleString,(String)ClassString,(String)""});
         /* Subfile cell */
         if ( Grid1Container.GetWrapped() == 1 )
         {
            context.WriteHtmlText( "<td valign=\"middle\" align=\""+""+"\""+" style=\""+((-1==0) ? "display:none;" : "")+"\">") ;
         }
         /* Check box */
         ClassString = "Attribute";
         StyleString = "";
         Grid1Row.AddColumnProperties("checkbox", 1, isAjaxCallMode( ), new Object[] {(String)chkavCtlsetembro_Internalname,StringUtil.BoolToStr( ((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1)).gxTpr_Setembro),(String)"",(short)-1,chkavCtlsetembro.Enabled,(String)"true",(String)"",(String)StyleString,(String)ClassString,(String)""});
         /* Subfile cell */
         if ( Grid1Container.GetWrapped() == 1 )
         {
            context.WriteHtmlText( "<td valign=\"middle\" align=\""+""+"\""+" style=\""+((-1==0) ? "display:none;" : "")+"\">") ;
         }
         /* Check box */
         ClassString = "Attribute";
         StyleString = "";
         Grid1Row.AddColumnProperties("checkbox", 1, isAjaxCallMode( ), new Object[] {(String)chkavCtloutubro_Internalname,StringUtil.BoolToStr( ((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1)).gxTpr_Outubro),(String)"",(short)-1,chkavCtloutubro.Enabled,(String)"true",(String)"",(String)StyleString,(String)ClassString,(String)""});
         /* Subfile cell */
         if ( Grid1Container.GetWrapped() == 1 )
         {
            context.WriteHtmlText( "<td valign=\"middle\" align=\""+""+"\""+" style=\""+((-1==0) ? "display:none;" : "")+"\">") ;
         }
         /* Check box */
         ClassString = "Attribute";
         StyleString = "";
         Grid1Row.AddColumnProperties("checkbox", 1, isAjaxCallMode( ), new Object[] {(String)chkavCtlnovembro_Internalname,StringUtil.BoolToStr( ((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1)).gxTpr_Novembro),(String)"",(short)-1,chkavCtlnovembro.Enabled,(String)"true",(String)"",(String)StyleString,(String)ClassString,(String)""});
         /* Subfile cell */
         if ( Grid1Container.GetWrapped() == 1 )
         {
            context.WriteHtmlText( "<td valign=\"middle\" align=\""+""+"\""+" style=\""+((-1==0) ? "display:none;" : "")+"\">") ;
         }
         /* Check box */
         ClassString = "Attribute";
         StyleString = "";
         Grid1Row.AddColumnProperties("checkbox", 1, isAjaxCallMode( ), new Object[] {(String)chkavCtldezembro_Internalname,StringUtil.BoolToStr( ((SdtSDTTodasMensalidades_SDTTodasMensalidadesItem)AV14SDTTodasMensalidades.Item(AV17GXV1)).gxTpr_Dezembro),(String)"",(short)-1,chkavCtldezembro.Enabled,(String)"true",(String)"",(String)StyleString,(String)ClassString,(String)""});
         Grid1Container.AddRow(Grid1Row);
         nGXsfl_18_idx = (short)(((subGrid1_Islastpage==1)&&(nGXsfl_18_idx+1>subGrid1_Recordsperpage( )) ? 1 : nGXsfl_18_idx+1));
         sGXsfl_18_idx = StringUtil.PadL( StringUtil.LTrim( StringUtil.Str( (decimal)(nGXsfl_18_idx), 4, 0)), 4, "0");
         edtavCtluserid_Internalname = "CTLUSERID_"+sGXsfl_18_idx;
         edtavCtlusernome_Internalname = "CTLUSERNOME_"+sGXsfl_18_idx;
         chkavCtljaneiro_Internalname = "CTLJANEIRO_"+sGXsfl_18_idx;
         chkavCtlfevereiro_Internalname = "CTLFEVEREIRO_"+sGXsfl_18_idx;
         chkavCtlmarco_Internalname = "CTLMARCO_"+sGXsfl_18_idx;
         chkavCtlabril_Internalname = "CTLABRIL_"+sGXsfl_18_idx;
         chkavCtlmaio_Internalname = "CTLMAIO_"+sGXsfl_18_idx;
         chkavCtljunho_Internalname = "CTLJUNHO_"+sGXsfl_18_idx;
         chkavCtljulho_Internalname = "CTLJULHO_"+sGXsfl_18_idx;
         chkavCtlagosto_Internalname = "CTLAGOSTO_"+sGXsfl_18_idx;
         chkavCtlsetembro_Internalname = "CTLSETEMBRO_"+sGXsfl_18_idx;
         chkavCtloutubro_Internalname = "CTLOUTUBRO_"+sGXsfl_18_idx;
         chkavCtlnovembro_Internalname = "CTLNOVEMBRO_"+sGXsfl_18_idx;
         chkavCtldezembro_Internalname = "CTLDEZEMBRO_"+sGXsfl_18_idx;
         /* End function sendrow_182 */
      }

      protected void init_default_properties( )
      {
         lblTextblock1_Internalname = "TEXTBLOCK1";
         lblTextblock4_Internalname = "TEXTBLOCK4";
         tblTable2_Internalname = "TABLE2";
         tblTable1_Internalname = "TABLE1";
         Form.Internalname = "FORM";
         subGrid1_Internalname = "GRID1";
      }

      public override void initialize_properties( )
      {
         init_default_properties( ) ;
         edtavCtlusernome_Jsonclick = "";
         edtavCtluserid_Jsonclick = "";
         subGrid1_Allowcollapsing = 0;
         subGrid1_Allowselection = 0;
         chkavCtldezembro.Enabled = 0;
         chkavCtlnovembro.Enabled = 0;
         chkavCtloutubro.Enabled = 0;
         chkavCtlsetembro.Enabled = 0;
         chkavCtlagosto.Enabled = 0;
         chkavCtljulho.Enabled = 0;
         chkavCtljunho.Enabled = 0;
         chkavCtlmaio.Enabled = 0;
         chkavCtlabril.Enabled = 0;
         chkavCtlmarco.Enabled = 0;
         chkavCtlfevereiro.Enabled = 0;
         chkavCtljaneiro.Enabled = 0;
         edtavCtlusernome_Enabled = 0;
         edtavCtluserid_Enabled = 0;
         subGrid1_Class = "Grid";
         subGrid1_Backcolorstyle = 3;
         Form.Headerrawhtml = "";
         Form.Background = "";
         Form.Backcolor = (int)(0xFFFFFF);
         Form.Caption = "Mensalidades";
      }

      public void cleanup( )
      {
         flushBuffer();
         CloseOpenCursors();
         if ( IsMain )
         {
            context.CloseConnections() ;
         }
      }

      protected void CloseOpenCursors( )
      {
      }

      public override void initialize( )
      {
         AV14SDTTodasMensalidades = new GxObjectCollection( context, "SDTTodasMensalidades.SDTTodasMensalidadesItem", "DeMolay", "SdtSDTTodasMensalidades_SDTTodasMensalidadesItem", "GeneXus.Programs");
         gxfirstwebparm = "";
         gxfirstwebparm_bkp = "";
         sDynURL = "";
         FormProcess = "";
         GX_FocusControl = "";
         Form = new GXWebForm();
         sPrefix = "";
         sEvt = "";
         EvtGridId = "";
         EvtRowId = "";
         sEvtType = "";
         edtavCtluserid_Internalname = "";
         edtavCtlusernome_Internalname = "";
         chkavCtljaneiro_Internalname = "";
         chkavCtlfevereiro_Internalname = "";
         chkavCtlmarco_Internalname = "";
         chkavCtlabril_Internalname = "";
         chkavCtlmaio_Internalname = "";
         chkavCtljunho_Internalname = "";
         chkavCtljulho_Internalname = "";
         chkavCtlagosto_Internalname = "";
         chkavCtlsetembro_Internalname = "";
         chkavCtloutubro_Internalname = "";
         chkavCtlnovembro_Internalname = "";
         chkavCtldezembro_Internalname = "";
         GXKey = "";
         GXCCtl = "";
         Grid1Container = new GXWebGrid( context);
         GXt_objcol_SdtSDTTodasMensalidades_SDTTodasMensalidadesItem1 = new GxObjectCollection( context, "SDTTodasMensalidades.SDTTodasMensalidadesItem", "DeMolay", "SdtSDTTodasMensalidades_SDTTodasMensalidadesItem", "GeneXus.Programs");
         sStyleString = "";
         ClassString = "";
         StyleString = "";
         lblTextblock1_Jsonclick = "";
         lblTextblock4_Jsonclick = "";
         subGrid1_Linesclass = "";
         Grid1Column = new GXWebColumn();
         BackMsgLst = new msglist();
         LclMsgLst = new msglist();
         Grid1Row = new GXWebRow();
         ROClassString = "";
         /* GeneXus formulas. */
         context.Gx_err = 0;
         edtavCtluserid_Enabled = 0;
         edtavCtlusernome_Enabled = 0;
         chkavCtljaneiro.Enabled = 0;
         chkavCtlfevereiro.Enabled = 0;
         chkavCtlmarco.Enabled = 0;
         chkavCtlabril.Enabled = 0;
         chkavCtlmaio.Enabled = 0;
         chkavCtljunho.Enabled = 0;
         chkavCtljulho.Enabled = 0;
         chkavCtlagosto.Enabled = 0;
         chkavCtlsetembro.Enabled = 0;
         chkavCtloutubro.Enabled = 0;
         chkavCtlnovembro.Enabled = 0;
         chkavCtldezembro.Enabled = 0;
      }

      private short AV17GXV1 ;
      private short nGotPars ;
      private short GxWebError ;
      private short nRC_Grid1 ;
      private short nGXsfl_18_idx=1 ;
      private short initialized ;
      private short gxajaxcallmode ;
      private short nGXWrapped ;
      private short wbEnd ;
      private short wbStart ;
      private short nDonePA ;
      private short gxcookieaux ;
      private short nGXsfl_18_fel_idx=1 ;
      private short subGrid1_Backcolorstyle ;
      private short subGrid1_Titlebackstyle ;
      private short subGrid1_Allowselection ;
      private short subGrid1_Allowhovering ;
      private short subGrid1_Allowcollapsing ;
      private short subGrid1_Collapsed ;
      private short subGrid1_Backstyle ;
      private int subGrid1_Islastpage ;
      private int edtavCtluserid_Enabled ;
      private int edtavCtlusernome_Enabled ;
      private int subGrid1_Titlebackcolor ;
      private int subGrid1_Allbackcolor ;
      private int subGrid1_Selectioncolor ;
      private int subGrid1_Hoveringcolor ;
      private int idxLst ;
      private int subGrid1_Backcolor ;
      private String gxfirstwebparm ;
      private String gxfirstwebparm_bkp ;
      private String sGXsfl_18_idx="0001" ;
      private String sDynURL ;
      private String FormProcess ;
      private String GX_FocusControl ;
      private String sPrefix ;
      private String sEvt ;
      private String EvtGridId ;
      private String EvtRowId ;
      private String sEvtType ;
      private String edtavCtluserid_Internalname ;
      private String edtavCtlusernome_Internalname ;
      private String chkavCtljaneiro_Internalname ;
      private String chkavCtlfevereiro_Internalname ;
      private String chkavCtlmarco_Internalname ;
      private String chkavCtlabril_Internalname ;
      private String chkavCtlmaio_Internalname ;
      private String chkavCtljunho_Internalname ;
      private String chkavCtljulho_Internalname ;
      private String chkavCtlagosto_Internalname ;
      private String chkavCtlsetembro_Internalname ;
      private String chkavCtloutubro_Internalname ;
      private String chkavCtlnovembro_Internalname ;
      private String chkavCtldezembro_Internalname ;
      private String GXKey ;
      private String GXCCtl ;
      private String sGXsfl_18_fel_idx="0001" ;
      private String sStyleString ;
      private String tblTable1_Internalname ;
      private String tblTable2_Internalname ;
      private String ClassString ;
      private String StyleString ;
      private String lblTextblock1_Internalname ;
      private String lblTextblock1_Jsonclick ;
      private String lblTextblock4_Internalname ;
      private String lblTextblock4_Jsonclick ;
      private String subGrid1_Internalname ;
      private String subGrid1_Class ;
      private String subGrid1_Linesclass ;
      private String ROClassString ;
      private String edtavCtluserid_Jsonclick ;
      private String edtavCtlusernome_Jsonclick ;
      private bool entryPointCalled ;
      private bool wbLoad ;
      private bool Rfr0gs ;
      private bool wbErr ;
      private bool returnInSub ;
      private bool gx_BV18 ;
      private GXMasterPage MasterPageObj ;
      private GXWebGrid Grid1Container ;
      private GXWebRow Grid1Row ;
      private GXWebColumn Grid1Column ;
      private IGxDataStore dsDefault ;
      private GXCheckbox chkavCtljaneiro ;
      private GXCheckbox chkavCtlfevereiro ;
      private GXCheckbox chkavCtlmarco ;
      private GXCheckbox chkavCtlabril ;
      private GXCheckbox chkavCtlmaio ;
      private GXCheckbox chkavCtljunho ;
      private GXCheckbox chkavCtljulho ;
      private GXCheckbox chkavCtlagosto ;
      private GXCheckbox chkavCtlsetembro ;
      private GXCheckbox chkavCtloutubro ;
      private GXCheckbox chkavCtlnovembro ;
      private GXCheckbox chkavCtldezembro ;
      private msglist BackMsgLst ;
      private msglist LclMsgLst ;
      [ObjectCollection(ItemType=typeof( SdtSDTTodasMensalidades_SDTTodasMensalidadesItem ))]
      private IGxCollection AV14SDTTodasMensalidades ;
      [ObjectCollection(ItemType=typeof( SdtSDTTodasMensalidades_SDTTodasMensalidadesItem ))]
      private IGxCollection GXt_objcol_SdtSDTTodasMensalidades_SDTTodasMensalidadesItem1 ;
      private GXWebForm Form ;
   }

}
